package my.merborn.ordersysteam105.models.dao;

import my.merborn.ordersysteam105.models.pojo.OrderT;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OrderMapper {
    int deleteByPrimaryKey(Integer oId);

    int insert(OrderT record);

    int insertSelective(OrderT record);

    OrderT selectByPrimaryKey(Integer oId);

    int updateByPrimaryKeySelective(OrderT record);

    int updateByPrimaryKey(OrderT record);

    List<OrderT> selectALL();

    List<OrderT> selectByUid(Integer uid);

    List<OrderT> selectNoPayed(Integer uid);

    List<OrderT>selectNoPayedAndNoFinished();

}